package com.supermarket.manage.common.dto.home.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author Faxon
 * @version 1.0
 * @date 2020-03-18 16:00
 **/
@Data
@ApiModel("HomeInitParams:首页数据查询对象")
public class HomeInitParams implements Serializable {

    private static final long serialVersionUID = -9077385582739160283L;

    /**
     * 客户id
     */
    @ApiModelProperty(value = "客户id")
    @NotBlank(message = "客户id不能为空")
    private String buyerId;

    /**
     * 日期前缀
     */
    @ApiModelProperty(value = "时间前缀 yyyy-MM-dd")
    @NotBlank(message = "日期前缀不能为空")
    private String beginTime;

    /**
     * 日期后缀
     */
    @ApiModelProperty(value = "时间后缀 yyyy-MM-dd")
    @NotBlank(message = "日期后缀不能为空")
    private String endTime;
}
